/*
UP5: Ringnode - One node of the Ring

A user level program that demonstrates process communication.

A program should start a set of other processes, P1 to Pn.

The processes should be set up in a communications ring, where P1
sends messages to P2, etc. on to Pn.

The demonstration should send some messages around the ring and show
that they visit all processes along the way.

The user should only need to start a single process to start the ring
demo: the main program should start the other processes involved.

The main ring program should return to the shell when done setting up
the ring.

Timers for when to send messages should be set in such a way that it
is possible to observe the processes involved in the ring from the
shell.
*/

/*
POSIX Message Passing is used here to simulate the PORN-OS Message Passing
http://macboypro.com/blog/2009/06/29/posix-message-passing-in-linux-in-c/
ref.:http://www.cs.cf.ac.uk/Dave/C/node25.html
*/

#include "api.h"
#include "string.h"
#include "message.h"

#define NUMBER_OF_MESSAGES 3

void ring_node(int parent, int node_id);

